﻿<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="UTF-8">
    <title><!--{$lang.page.index.title}--></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/static/lay/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/lay/layui/index.css" media="all">
  </head>
<body>
<body>
<div class="layui-fluid">
     <div class="layui-card">
     	<div class="layui-card-body" style="padding: 15px;">
            <table  cellspacing="0" cellpadding="0" border="0" class="layui-table">
			<thead>
			<tr><th colspan="3" scope="col">compile <!--{$lang.page.index.stat}--></th></tr>
			<tr class="text-c"><th width="15%">compile</th><th><!--{$lang.page.index.number}--></th><th><!--{$lang.page.index.size}--></th></tr>
		    </thead>
			<tbody>
				<tr>
					<td>compile</td>
					<td><!--{$compilePath}--></td>
                    <td><!--{$compilesize}--></td>
			    </tr>
                <tr>
					<td><!--{$lang.page.table.operation}--></td>
					<td colspan="2"><button class="layui-btn" type="button" lay-submit lay-filter="compile"><!--{$lang.page.index.clearcache}--></button></td>
			    </tr>
		    </tbody>
	        </table>
            <div style="height:1rem;"></div>
             <table  cellspacing="0" cellpadding="0" border="0" class="layui-table">
			<thead>
			<tr><th colspan="3" scope="col">cache <!--{$lang.page.index.stat}--></th></tr>
			<tr class="text-c"><th width="15%">cache</th><th><!--{$lang.page.index.number}--></th><th><!--{$lang.page.index.size}--></th></tr>
		    </thead>
			<tbody>
				<tr>
					<td>cache</td>
					<td><!--{$cachePath}--></td>
                    <td><!--{$cachesize}--></td>
			    </tr>
                <tr>
					<td><!--{$lang.page.table.operation}--></td>
					<td colspan="2"><button class="layui-btn" type="button" lay-submit lay-filter="cache"><!--{$lang.page.index.clearcache}--></button></td>
			    </tr>
		    </tbody>
	        </table>
         </div>
    </div>
</div>
 <script src="/static/lay/layui/layui.js"></script>
  <script type="text/javascript">
    layui.config({
     base: '/static/lay/' //静态资源所在路径
   }).use(['jquery', 'layer', 'form'], function(){
    var $ = layui.$;
    var form = layui.form;
     form.render(null, 'component-form-group');
     
    form.on('submit(compile)', function (data) {
                $.post('/admin/index/cachedel/',{file:'compile'},function(res){
                    if(res.code == 200){
                        window.location.reload();
                        layer.msg(res.msg);
                    }else{
                        layer.msg(res.msg);
                    }
                })
                return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
    });

    form.on('submit(cache)', function (data) {
                $.post('/admin/index/cachedel/',{file:'cache'},function(res){
                    if(res.code == 200){
                        window.location.reload();
                        layer.msg(res.msg);
                    }else{
                        layer.msg(res.msg);
                    }
                })
                return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
    });

  });

  </script>
</body>
</html>